package com.mys.service;

import java.util.List;

public class pagebean {
	private int total;	
	private int page;	
	private List resultList;
	public int getTotal() {
		return total;
	}
	public void setTotal(int numPerPage,int totalRows) {
		if (totalRows % numPerPage == 0) {
			this.total = totalRows / numPerPage;
		} else {
			this.total = (totalRows / numPerPage) + 1;
		}
	}
	public int getPage() {
		return page;
	}
	public void setPage(int page) {
		this.page = page;
	}
	public List getResultList() {
		return resultList;
	}
	public void setResultList(List resultList) {
		this.resultList = resultList;
	}
	
	
}
